#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class CourseArrange : Business.BusinessBase<CourseArrange, int>
	{
		#region Fields and Properties

		private String courseCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CourseCate
		{
			get { return courseCate; }
			set
			{
				if (value != courseCate)
				{
					MarkChanged("CourseCate");
					courseCate = value;
				}
			}
		}

		private String courseCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String CourseCode
		{
			get { return courseCode; }
			set
			{
				if (value != courseCode)
				{
					MarkChanged("CourseCode");
					courseCode = value;
				}
			}
		}

		private int lesson = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Lesson
		{
			get { return lesson; }
			set
			{
				if (value != lesson)
				{
					MarkChanged("Lesson");
					lesson = value;
				}
			}
		}

		private int weekDay = 0;
		/// <summary>
		/// 
		/// </summary>
		public int WeekDay
		{
			get { return weekDay; }
			set
			{
				if (value != weekDay)
				{
					MarkChanged("WeekDay");
					weekDay = value;
				}
			}
		}

		private String classCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassCode
		{
			get { return classCode; }
			set
			{
				if (value != classCode)
				{
					MarkChanged("ClassCode");
					classCode = value;
				}
			}
		}

		private String profCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ProfCode
		{
			get { return profCode; }
			set
			{
				if (value != profCode)
				{
					MarkChanged("ProfCode");
					profCode = value;
				}
			}
		}

		private String gradeCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String GradeCode
		{
			get { return gradeCode; }
			set
			{
				if (value != gradeCode)
				{
					MarkChanged("GradeCode");
					gradeCode = value;
				}
			}
		}

		private int semester = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Semester
		{
			get { return semester; }
			set
			{
				if (value != semester)
				{
					MarkChanged("Semester");
					semester = value;
				}
			}
		}

		private String stdYear = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String StdYear
		{
			get { return stdYear; }
			set
			{
				if (value != stdYear)
				{
					MarkChanged("StdYear");
					stdYear = value;
				}
			}
		}

		private String classRoomCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClassRoomCode
		{
			get { return classRoomCode; }
			set
			{
				if (value != classRoomCode)
				{
					MarkChanged("ClassRoomCode");
					classRoomCode = value;
				}
			}
		}

		private String teacherCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TeacherCode
		{
			get { return teacherCode; }
			set
			{
				if (value != teacherCode)
				{
					MarkChanged("TeacherCode");
					teacherCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public CourseArrange()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override CourseArrange DataSelect(int id)
		{
			return Services.DALService.CourseArrangeService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.CourseArrangeService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.CourseArrangeService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.CourseArrangeService.Delete(this);
		}

		#endregion Base overrides
	}
}
